from flask_restful import Resource,Api
from flask import Blueprint
from comment.utils.output import output_json

#创建蓝图
card_bp=Blueprint('card',__name__,url_prefix='/cards')


#创建restfui风格的api
card_api=Api(card_bp)

#将资源类中的响应数据转化成json格式的数据
card_api.representation('application/json')(output_json)

from financial.resource.card.card_resource import *
#加载资源
card_api.add_resource(Card_Resource,'/card',endpoint='card')